//
//  WDSplashManager.h
//  WDPolymerizeSDK
//
//  Created by little People on 2023/5/30.
//

#import <Foundation/Foundation.h>
@import GoogleMobileAds;

NS_ASSUME_NONNULL_BEGIN

@protocol WDSplashManagerDelegate <NSObject>
/// Method to be invoked when an app open ad is complete (i.e. dismissed or fails to show).

- (void)adLoadedSuccessfully;

@end

@interface WDSplashManager : NSObject<GADFullScreenContentDelegate>
@property (nonatomic, weak) id <WDSplashManagerDelegate> _Nullable delegate;
@property (nonatomic, assign)BOOL isLoadSplash;
@property (nonatomic, assign)NSInteger splashIDIndex;
@property(strong, nonatomic) GADAppOpenAd* appOpenAd;
@property(weak, nonatomic) NSDate *loadTime;

+ (instancetype)shareSplash;
- (void)requestAppOpenAd;
- (void)tryToPresentAd;
@end

NS_ASSUME_NONNULL_END
